<?php

/*

  Action	$5

  +2 Actions, +1 Buy, +$2.

 */

class Festival extends Card implements iAction, iKingdom, iBasic {

    public function __construct() {
        parent::__construct("Festival", 5);
        $this->undoPlay = false;
        $this->undoBuy = true;
    }

    public function getDescription() {
        return array(
            "+2 Actions",
            "+1 Buy",
            "+$2");
    }
    
    public function play(Game $game, $isRealCard) {
        $game->addActions(2);
        $game->addBuys(1);
        $game->addMoney(new Price(2));
        
         ScreenDisplay::addScreenMessage($game, true, "get +2 actions, +1 buy and +2$", "get +2 actions, +1 buy and +2$");
        $game->cardActionFinished();
        return true;
    }

}

?>